GtkMenu: Try using gdk_window_move_to_rect() more often
authorJonas Ådahl <jadahl@gmail.com>
Fri, 14 Oct 2016 08:41:50 +0000 (16:41 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2016 15:54:54 +0000 (11:54 -0400)
commit11b5cfbc50cd09f1cb52f434e5c21a80cece5e05
treee7ec73fb6cd1f2908257a8d76095fab2ea55e074
parent5993117b848afed45b5b812720cb5993d4873b6c
GtkMenu: Try using gdk_window_move_to_rect() more often

With best-effort, try to use gdk_window_move_to_rect() more often, when
all pieces fit together. For the non-legacy paths to be triggered for
when gtk_menu_popup_for_device() or gtk_menu_popup() were used, the
following conditions must be met:

 1) There is no custom positioning function specified
 2) The menu is attached to a widget (using gtk_menu_attach_to_widget())
 3) There is a associated grab device

https://bugzilla.gnome.org/show_bug.cgi?id=772922
gtk/gtkmenu.c